package org.feign.client.remote.service;

import org.feign.client.remote.service.hystrix.ServiceHelloFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-hello", fallback = ServiceHelloFeignHystrix.class, path = "/hello")
public interface ServiceHelloFeign {
	@RequestMapping(value = "/{name}", method = RequestMethod.GET)
    String sayHelloFromClientOne(@PathVariable(value = "name") String name);
}
